#!/usr/bin/env python3.10
# -*- encoding: utf-8 -*-
'''
@File    :   api.py
@Time    :   2023/12/30 19:23:35
@Author  :   windstarry 
@Version :   1.0
'''
# here put the import lib
from ninja import NinjaAPI
from system.router import router as system_router
from article.router import router as article_router
from utils.auth import GlobalAuth


app = NinjaAPI(title="BigEvent后端管理接口",
               description="使用DjangoNinja实现big_event后端管理接口",
               auth=GlobalAuth())

# from utils.response import BaseAPI
# app = BaseAPI(title="BigEvent后端管理接口",
#                description="使用DjangoNinja实现big_event后端管理接口",
#                auth=GlobalAuth())

app.add_router('', system_router)
app.add_router('/my', article_router)